//
//  ELAnnotationViewTuple.swift
//  WZApp
//
//  Created by evol on 2018/7/13.
//  Copyright © 2018年 evol. All rights reserved.
//

import UIKit

class ELAnnotationViewTuple {

    var model: ELTagModel!
    var view: ELAnnotationView!
    init(model:ELTagModel, view:ELAnnotationView) {
        self.model = model
        self.view = view
    }
}

extension ELAnnotationViewTuple: Hashable {
    static func == (lhs: ELAnnotationViewTuple, rhs: ELAnnotationViewTuple) -> Bool {
        return lhs.model.id == rhs.model.id
    }
    
    var hashValue: Int { return (self.model.name?.hashValue)! }
}
